﻿@model ThaireInvestmentWeb.Models.EditEquityHeaderModel

@{
    ViewBag.Title = "Equity Header";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<script>
    $(document).ready(function () 
    {

        $("#Header_BidPriceDate,#Header_BVPriceDate,#Header_FVPriceDate,#Header_ClosePriceDate").datepicker(
            {
                dateFormat: 'dd/mm/yy',
                isBuddhist: true,
                showOn: 'button',
                showAnim: 'fadeIn',
                changeMonth: true,
                changeYear: true,
                showButtonPanel: true,
                buttonImage: '@Url.Content("~/Content/images/Calendar.png")',
                onSelect: function(dateText, inst) { 
                    if(this.id == "Header_MaturityDate")
                    {
                        //    alert(dateText);
                        getMaturityStatus(dateText);
                    }
                }
            });
        $("#CancelBtn").click(function (event)
        {
            //showConfirm("Are you sure to cancel ?", CancelBtnAction);
            showConfirm(null, CancelBtnAction);
            return false;
        });

        $.ajax({
            url: "@Url.Action("GetFullNameEN", "Equity")",
            type: 'POST',
            success: function(data) {
                var availableTags = data;
                // alert(availableTags);
                $( "#Header_FullNameEN" ).autocomplete({
                    source: availableTags
                });
                return false;
            }
        });

        $.ajax({
            url: "@Url.Action("GetFullNameTH", "Equity")",
            type: 'POST',
            success: function(data) {
                var availableTags = data;
                // alert(availableTags);
                $( "#Header_FullNameTH" ).autocomplete({
                    source: availableTags
                });
                return false;
            }
        });

    }); 
    function CancelBtnAction(event)
    {
        window.location.href= 'ManageEquity';
    }
    function getMaturityStatus(value)
    {
        $.ajax({
            url: "@Url.Action("GetMaturityStatus", "FixedIncome")" + "?maturityDate=" + value,
            type: 'POST',
            success: function(data) {
                $('#Header_MaturityStatus').val(data.MaturityStatus);
                return false;
            }
        });
    }
    function getInvolvedType(id)
    {
        $.ajax({
            url: "@Url.Action("GetInvolvedType", "Equity")" + "?id=" + id,
            type: 'POST',
            success: function(data) {
                // alert(data.InvolvedPartyTypeCode);
                $('#InvolvedPartyTypeNO').val(data.InvolvedPartyTypeCode);
                $('#InvolvedPartyTypeReferance').val(data.InvolvedPartyTypeReference);


                return false;
            }
        });
    }

</script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<table class="navi" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td style="width: 100%;">
            <div class="navi">
                Instrument Type > <a href="@Url.Action("ManageEquity", "Equity", new { headerId = @Model.HeaderID })">Equity Securities</a> > Header
          
            </div>
        </td>
    </tr>
</table>

<table class="tableheader" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td height="38" align="center" style="width: 100%; text-align: center;">INPUT Equity Securities</td>
    </tr>
</table>

<table width="951" border="0" align="center">
    <tr>
        <td>
            @using (Html.BeginForm("EditEquityHeader", "Equity", FormMethod.Post, new { id = "mainForm" }))
            {
                @Html.ValidationSummary(true)

                <table width="100%" border="0" align="center" cellspacing="2">
                    <tr>
                        <td width="300" height="31">&nbsp;</td>
                        <td align="right">
                            <div style="text-align: right">Create by : @Model.Header.CreateBY </div>
                        </td>
                        <td width="5">&nbsp;</td>
                        <td width="139" align="right">
                            <div style="text-align: right">Create Time :@Model.Header.CreateDate</div>
                        </td>
                    </tr>
                    <tr>
                        <td width="300" height="31">&nbsp;</td>
                        <td align="right">
                            <div style="text-align: right">Update by : @Model.Header.ModifyBY</div>
                        </td>
                        <td width="5">&nbsp;</td>
                        <td width="139" align="right">
                            <div style="text-align: right">Update Time :@Model.Header.ModifyDate</div>
                        </td>
                    </tr>
                </table>
                <table class="tableform" width="100%" border="5" align="center" cellspacing="2">
                    <tr>
                        <td width="212">
                            <div align="right">Company Name <span class="error">*</span> : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">@Html.DropDownListFor(x => x.SelectedCompany, Model.CompanyList)</td>
                        <td width="188" align="right">
                            <div align="right">Maturity Status:</div>
                        </td>
                        <td>&nbsp;</td>
                        <td width="208">
                            <table width="71%" border="0" cellspacing="1" bgcolor="#000000">
                                <tr>
                                    <td bgcolor="#FFFFFF">@Html.TextBoxFor(model => model.Header.MaturityStatus, new { @readonly = "readonly" })</td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div align="right">Full Name (TH) : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.TextBoxFor(model => model.Header.FullNameTH)
                            @Html.ValidationMessageFor(model => model.Header.FullNameTH)
                        </td>
                        <td>
                            <div align="right">Full Name (EN) : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.Header.FullNameEN)
                            @Html.ValidationMessageFor(model => model.Header.FullNameEN)                            
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div align="right">Equity Type : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">@Html.DropDownListFor(x => x.SelectedEquityType, Model.EquityTypeList)</td>
                        <td>
                           &nbsp;
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div align="right">Sector Group : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">@Html.DropDownListFor(x => x.SelectedSectorGroup, Model.SectorGroupList)</td>
                        <td>
                            <div align="right">Sector : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.DropDownListFor(x => x.SelectedSector, Model.SectorList)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div align="right">Symbol <span class="error">*</span> : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">@Html.TextBoxFor(model => model.Symbol) @Html.ValidationMessageFor(model => model.Symbol)</td>
                        <td>
                            <div align="right">Listed Status : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.DropDownListFor(x => x.SelectedListedStatus, Model.ListedStatusList)
                        </td>
                    </tr>
                     @*<tr>                       
                        <td>
                            <div align="right">Broker : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.DropDownListFor(x => x.SelectedBroker, Model.BrokerList)
                        </td>
                         <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>*@
                     <tr>
                        <td>
                            <div align="right">Capital Registered : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.TextBoxFor(model => model.Header.CapitalRegistered)
                            @Html.ValidationMessageFor(model => model.Header.CapitalRegistered)

                        </td>
                        <td>
                            <div align="right">Capital Paid : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.Header.CapitalPaid)
                            @Html.ValidationMessageFor(model => model.Header.CapitalPaid)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div align="right">Involved Party Type Name    : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.DropDownListFor(x => x.SelectedInvolvedPartyType, Model.InvolvedPartyTypeNameList, new { onchange = "getInvolvedType(this.value)" })
                            &nbsp;</td>
                        <td>
                            <div align="right">Involved Party Type No. : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.InvolvedPartyTypeNO, new { @readonly = "readonly" })
                            @Html.ValidationMessageFor(model => model.InvolvedPartyTypeNO)</td>
                    </tr>
                    <tr>
                        <td>
                            <div align="right">รหัสอ้างอิง คปภ. (A-E)    : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.TextBoxFor(model => model.InvolvedPartyTypeReferance, new { @readonly = "readonly" })
                            @Html.ValidationMessageFor(model => model.InvolvedPartyTypeReferance)
                        </td>
                        <td>
                            <div align="right">Remain Unit : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.Header.RemainUnit, new { @class = "inputNumberField" })
                            @Html.ValidationMessageFor(model => model.Header.RemainUnit)
                        </td>
                    </tr>
                    @*todo: insert ParUnit, Par*@
                    <tr>
                        <td>
                            <div align="right">Par / Unit :</div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.EditorFor(model => model.Header.ParUnit, new { @class = "inputNumberField" })
                            @Html.ValidationMessageFor(model => model.Header.ParUnit)</td>
                        <td>
                            <div align="right">Par<span class="error"> </span>: </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.Header.ParAmount, new { @class = "inputNumberField" })
                        </td>
                    </tr>
                    @*End Insert*@
                    <tr bgcolor="#E8ECFF">
                        <td>
                            <div align="right">Bid Price Date  : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.TextBoxFor(model => model.Header.BidPriceDate, new { @readonly = "readonly", @Value = ThaireInvestmentWeb.Util.WebUtil.FormatDate(@Model.Header.BidPriceDate) })
                            @Html.ValidationMessageFor(model => model.Header.BidPriceDate)
                        </td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr bgcolor="#E8ECFF">
                        <td>
                            <div align="right">Bid Price per Unit : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.TextBoxFor(model => model.Header.BidPricePerUnit, new { @class = "inputNumberField" })
                            @Html.ValidationMessageFor(model => model.Header.BidPricePerUnit)

                        </td>
                        <td>
                            <div align="right">Bid AMOUNT : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.BidAmount, new { @class = "inputNumberField" })
                            @Html.ValidationMessageFor(model => model.BidAmount)
                        </td>
                    </tr>
                    <tr bgcolor="#E8ECFF">
                        <td>
                            <div align="right">BV Price Date  : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.TextBoxFor(model => model.Header.BVPriceDate, new { @readonly = "readonly", @Value = ThaireInvestmentWeb.Util.WebUtil.FormatDate(@Model.Header.BVPriceDate) })
                            @Html.ValidationMessageFor(model => model.Header.BVPriceDate)
                        </td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr bgcolor="#E8ECFF">
                        <td>
                            <div align="right">BV Price per Unit : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.TextBoxFor(model => model.Header.BVPricePerUnit, new { @class = "inputNumberField" })
                            @Html.ValidationMessageFor(model => model.Header.BVPricePerUnit)

                        </td>
                        <td>
                            <div align="right">BV AMOUNT : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.BVAmount, new { @class = "inputNumberField" })
                            @Html.ValidationMessageFor(model => model.BVAmount)
                        </td>
                    </tr>
                    <tr bgcolor="#E8ECFF">
                        <td>
                            <div align="right">Fv Price Date  : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.TextBoxFor(model => model.Header.FVPriceDate, new { @readonly = "readonly", @Value = ThaireInvestmentWeb.Util.WebUtil.FormatDate(@Model.Header.FVPriceDate) })
                            @Html.ValidationMessageFor(model => model.Header.FVPriceDate)
                        </td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr bgcolor="#E8ECFF">
                        <td>
                            <div align="right">FV Price per Unit : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.TextBoxFor(model => model.Header.FVPricePerUnit, new { @class = "inputNumberField" })
                            @Html.ValidationMessageFor(model => model.Header.FVPricePerUnit)

                        </td>
                        <td>
                            <div align="right">FV AMOUNT : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.FVAmount, new { @class = "inputNumberField" })
                            @Html.ValidationMessageFor(model => model.FVAmount)
                        </td>
                    </tr>
                    <tr bgcolor="#E8ECFF">
                        <td>
                            <div align="right">Close Price Date  : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.TextBoxFor(model => model.Header.ClosePriceDate, new { @readonly = "readonly", @Value = ThaireInvestmentWeb.Util.WebUtil.FormatDate(@Model.Header.ClosePriceDate) })
                            @Html.ValidationMessageFor(model => model.Header.ClosePriceDate)
                        </td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr bgcolor="#E8ECFF">
                        <td>
                            <div align="right">Close Price per Unit : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.TextBoxFor(model => model.Header.ClosePricePerUnit, new { @class = "inputNumberField" })
                            @Html.ValidationMessageFor(model => model.Header.ClosePricePerUnit)

                        </td>
                        <td>
                            <div align="right">Close AMOUNT : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(model => model.CloseAmount, new { @class = "inputNumberField" })
                            @Html.ValidationMessageFor(model => model.CloseAmount)
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#E8ECFF">&nbsp;</td>
                        <td bgcolor="#E8ECFF">&nbsp;</td>
                        <td bgcolor="#E8ECFF">&nbsp;</td>
                        <td bgcolor="#E8ECFF">&nbsp;</td>
                        <td bgcolor="#E8ECFF">&nbsp;</td>
                        
                        @if (Model.PriceAdapter != null)
                        {
                            <td bgcolor="#E8ECFF" style="text-align: right; vertical-align: central">
                            <img alt="" class="style1" src="../../Content/images/graph.png" style="width: 28px; height: 22px"
                                onClick="go('@Url.Action("ViewEquityPriceHistory", "Equity")    ');" />
                            History
                            </td>
                        }else{
                            <td bgcolor="#E8ECFF">&nbsp;</td>
                        }                       
                    </tr>
                    <tr>
                        <td>
                            <div align="right">Liquidity    : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td colspan="4">

                            @Html.CheckBoxFor(model => model.IsTierISelected)

                            Tier I&nbsp; 

                            @Html.TextBoxFor(model => model.Header.LiquidityTierIPercent)
                            @Html.ValidationMessageFor(model => model.Header.LiquidityTierIPercent)
                            %
                            <br />
                            @Html.CheckBoxFor(model => model.IsTierIISelected)

                            Tier II&nbsp;

                            @Html.TextBoxFor(model => model.Header.LiquidityTierIIPercent)
                            @Html.ValidationMessageFor(model => model.Header.LiquidityTierIIPercent)

                            %
                            <br />
                            @Html.CheckBoxFor(model => model.IsLowLiquiditySelected)
                            Low Liquidity&nbsp;
                            @Html.TextBoxFor(model => model.Header.LiquidityLowLiquidityPercent)
                            @Html.ValidationMessageFor(model => model.Header.LiquidityLowLiquidityPercent)
                            %
                            <br />
                        </td>
                    </tr>
                    
                    <tr>
                        <td>
                            <div align="right">Relate    : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">
                            @Html.DropDownListFor(x => x.SelectedRelatedOrNonRelated, Model.RelatedOrNonRelatedList)

                        </td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        
                        <td>
                            <div align="right">Remark (OIC)    : </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>@Html.TextBoxFor(model => model.Header.RemarkOic)
                            @Html.ValidationMessageFor(model => model.Header.RemarkOic)
                            %</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            <div align="right"></div>
                        </td>
                        <td>&nbsp;</td>
                        <td style="width: 236px">&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                </table>

                <table width="95%" border="0" align="center" style="height: 38px">

                    <tr>


                        <td style="height: 38px">
                            <div align="center">
                                <input id="SaveBtn" type="submit" name="SaveBtn" value=" Submit " class="button"  need-confirm="true">
                                &nbsp;&nbsp; 
                                <input id="CancelBtn" type="button" name="CancelBtn" value=" Cancel " class="button">
                                &nbsp;&nbsp;
                                <input id="EditBtn" type="button" name="EditBtn" value=" Edit " class="button">
                            </div>
                        </td>
                    </tr>

                </table>
                
                        if (Model.UpdateMode)
                        {
                <table width="95%" border="0" align="center">
                    <tr>
                        <td>
                            <div align="center" style="text-align: left">
                                <input type="button" name="PurchaseBtn" value=" Purchase / Subscription " class="button" onClick="go('@Url.Action("AddPurchaseTransaction", "Equity", new { headerId = Model.HeaderID.ToString() })    ');" >
                                &nbsp;&nbsp; 
                                <input type="button" name="Submit42" class="btsub" value="  Sale  " onClick="go('@Url.Action("AddSaleTransaction", "Equity", new { headerId = Model.HeaderID.ToString() })    ');" >
                                &nbsp;&nbsp; 
                                <input type="button" name="Submit422" class="btsub" value="  Guarantee  " onClick="go('@Url.Action("AddGuaranteeTransaction", "Equity", new { headerId = Model.HeaderID.ToString() })    ');" >
                                &nbsp;&nbsp;
                                @*<input type="button" name="Submit422" class="btsub" value=" สิทธิประโยชน์ "/>*@
                                <input type="button" name="Submit422" class="btsub" value=" สิทธิประโยชน์ " onClick="go('@Url.Action("ManageEquityPrivilege", "Equity", new { headerId = Model.HeaderID.ToString() })    ');" >
                               
                            </div>
                        </td>
                    </tr>
                </table>
                
                        }
                @Html.HiddenFor(x => x.UpdateMode)
                @Html.HiddenFor(x => x.HeaderID)
            }

            <div style="width: 930px; overflow: auto;">
                @if (Model.TransactionAdaters != null)
                {
                    var grid = new WebGrid(source: Model.TransactionAdaters);
                    @grid.GetHtml(tableStyle: "tablelist", headerStyle: "headertable", displayHeader: @Model.TransactionAdaters.Count > 0,
            columns: grid.Columns(
                grid.Column(header: "NO.", format: item => item.WebGrid.Rows.IndexOf(item) + 1, canSort: false),
                grid.Column(columnName: "TransactionType", header: "Purchase/Sale/Guarantee", canSort: false),
                grid.Column(columnName: "RefNO", header: "Fund Name", canSort: false),
                grid.Column(columnName: "TradeDate", header: "TradeDate", canSort: false),
                grid.Column(columnName: "SettlementDate", header: "Settlement Date", canSort: false),
                 @*grid.Column(columnName: "PAR", header: "PAR", canSort: false),
               grid.Column(columnName: "CounterpartyName", header: "Fund Name", canSort: false),
                grid.Column(columnName: "CounterpartyName", header: "Fund Name", canSort: false),
                grid.Column(columnName: "CounterpartyName", header: "Fund Name", canSort: false),
                grid.Column(columnName: "CounterpartyName", header: "Fund Name", canSort: false),
                grid.Column(columnName: "CounterpartyName", header: "Fund Name", canSort: false),
                grid.Column(header: "TransactionUnit", canSort: false, format: @<text>TransactionUnit</text>),
                grid.Column(header: "RemainUnit", canSort: false, format: @<text>RemainUnit</text>),

                grid.Column(columnName: "Par", header: "Par", canSort: false),
                grid.Column(columnName: "Yield", header: "Cost Yield (YTM)", canSort: false),
                grid.Column(columnName: "TradeDate", header: "Coupon Payment Date", canSort: false),

                grid.Column(header: "Coupon Payment Date", canSort: false, format: @<text>Coupon Payment Date</text>),
                grid.Column(header: "Coupon", canSort: false, format: @<text>Coupon</text>),
                grid.Column(header: "Purchase Value (Local THB)", canSort: false, format: @<text>Purchase Value</text>),*@

 grid.Column(header: "Detail", format:
                        @<text>
                        <input type="image" onClick="go('@item.Link    ');return false;"  src="@Url.Content("~/Content/images/b_edit.gif")"  title="แก้ไข (update)">
                        </text>))
                );
                }
            </div>

            @*      <div style="width: 930px; overflow: auto;">
                <table class="tablelist" width="1400px" border="0" align="center" cellspacing="1" bgcolor="#333333">
                    <!--DWLayoutTable-->
                    <tr bgcolor="#CCCCCC">
                        <th width="25" scope="col" style="text-align: center; height: 45px" rowspan="2">NO.</th>
                        <th scope="col" style="text-align: center; width: 27px; height: 45px" rowspan="2">Purchase/<br />
                            Sale/<br />
                            Guarantee</th>
                        <th width="65" scope="col" style="text-align: center; height: 45px" rowspan="2">Fund 
                            Name</th>
                        <th width="60" scope="col" style="text-align: center; height: 45px" rowspan="2">Counter Party</th>
                        <th width="66" scope="col" style="text-align: center; height: 45px" rowspan="2">Time 
                            to Maturity Date</th>
                        <th width="61" scope="col" style="text-align: center; height: 45px" rowspan="2">Trade Date</th>
                        <th width="43" scope="col" style="text-align: center; height: 45px" rowspan="2">Settlement Date </th>
                        <th width="73" scope="col"
                            style="text-align: center; height: 45px; width: 146px;" colspan="2">Unit<br />
                        </th>
                        <th width="73" scope="col" style="text-align: center; height: 45px" rowspan="2">PAR</th>
                        <th width="73" scope="col" style="text-align: center; height: 45px" rowspan="2">NAV</th>
                        <th width="73" scope="col" style="text-align: center; height: 45px" rowspan="2">NAV 
                            Date</th>
                        <th width="73" scope="col" style="text-align: center; height: 45px" rowspan="2">Bid 
                            Price / Unit</th>
                        <th width="73" scope="col" style="text-align: center; height: 45px" rowspan="2">Bid 
                            Price Date</th>
                        <th width="73" scope="col" style="text-align: center; height: 45px" rowspan="2">Purchase Value</th>
                        <th width="73" scope="col" style="text-align: center; height: 45px" rowspan="2">Bid 
                            Price Amount</th>
                        <th width="31" scope="col" style="text-align: center; height: 45px" rowspan="2"></th>
                    </tr>

                    <tr bgcolor="#CCCCCC">
                        <th width="73" scope="col" style="text-align: center; height: 45px">Transaction Unit</th>
                        <th width="73" scope="col" style="text-align: center; height: 45px">Remain Unit</th>
                    </tr>

                    <tr bgcolor="#FFFFFF">
                        <td height="31">
                            <div align="center">
                                1
                
                            </div>
                            <td style="width: 27px; text-align: center;">Purchase</td>
                        <td style="text-align: center">กองทุนระยะยาว</td>
                        <td style="text-align: center">ธนาคาร กรุงศรี</td>
                        <td style="text-align: center">5</td>
                        <td>21/12/2013</td>
                        <td>21/12/2013</td>
                        <td>100</td>
                        <td>100</td>
                        <td>100</td>
                        <td>101</td>
                        <td>21/12/2013</td>
                        <td>99.5</td>
                        <td>21/12/2013</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>
                            <img alt="" src="../../Content/images/b_edit.gif"
                                style="width: 24px; height: 24px" /></td>
                    </tr>
                </table>
            </div>*@
            <br>
        </td>
    </tr>
</table>


